package com.websystique.springsecurity.controller;

import com.websystique.springsecurity.model.State;
import com.websystique.springsecurity.model.SysMenu;
import com.websystique.springsecurity.model.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 非重要数据控制类
 */
//@RestController
@Controller
@RequestMapping("noSentiveData")
public class NoSensitiveDataController {

    @RequestMapping(value = "onLineUserNum",method = RequestMethod.GET, produces = "application/json")
    @ResponseBody
    public Object onLineUserNum(){
        SysMenu sysMenu=new SysMenu();
        sysMenu.setId(1);
        sysMenu.setMenuUrl("http://www");

        return 100;
    }
}
